package com.cn.lck.enums;

/**
 * @Description:
 * @Author: lck
 * @Date: 2020.10.22 14:52
 **/
public enum CommonTableEnum {
    TB_TEST("*",true,true,true,true),
    TB_DEMO("*",true,true,true,true);
    String filed;
    //开启列表权限
    boolean list;
    //开启增加权限
    boolean add;
    //开启修改权限
    boolean update;
    //开启删除权限
    boolean delete;

    CommonTableEnum(String filed, boolean list, boolean add, boolean update, boolean delete){
        this.filed = filed;
        this.list = list;
        this.add = add;
        this.update = update;
        this.delete = delete;
    }

    public String getFiled() {
        return filed;
    }

    public boolean isList() {
        return list;
    }

    public boolean isAdd() {
        return add;
    }

    public boolean isUpdate() {
        return update;
    }

    public boolean isDelete() {
        return delete;
    }
}
